﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/*
 * Author:Conis
 * Date:
 * Description:对数字操作功能的扩展
 */

namespace Conis.Squirrel
{
    /// <summary>
    /// 对数字操作功能的扩展
    /// </summary>
    public class NumericHelper
    {
        /// <summary>
        /// 整形相除
        /// </summary>
        /// <param name="left"></param>
        /// <param name="right"></param>
        /// <returns></returns>
        public static double Div(int left, int right)
        {
            double dLeft = Convert.ToInt32(left);
            double dRight = Convert.ToInt32(right);
            return dLeft / dRight;
        }
    }
}
